﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>项目立项申请</title>
<link href="../css/main.css" type="text/css" rel="stylesheet"/>

<script type="text/javascript" src="../EasyUI125/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../js/dateTextBox.js"></script>
<script type="text/javascript" src="../js/main.js"></script>

<script type="text/javascript">
// 表格
$(function(){

   
	document.getElementById('inputOther').style.display='none';

	$(".showtit,.hidetit").click(function(){
	 var t = $(this).parent().parent().parent().next("table");
	 t.toggle();
     if(t.get(0).style.display == "none")
	 {
		 $(this).attr("class","showtit");
	 }
	 else
	 {
		 $(this).attr("class","hidetit");
	 }
})



});

function showInput()
{
	if($("#ckOne").attr("checked"))
	{
		document.getElementById('inputOther').style.display='block';
	}
	else
	{
		document.getElementById('inputOther').style.display='none';
	}
}


function addOptions(obj)
{
  var cloneNode =   $(obj).clone(true);
  cloneNode.appendTo($(obj).parent());
}

function delOptions(obj)
{
  $(obj).remove();
}

function save()
{
  alert("保存成功!");
}

function rowDel(detailNum)
{
    var Container = document.getElementById("materielList");
    var _tr = document.getElementById("item"+detailNum);     
    row = _tr.rowIndex;   
    Container.deleteRow(row);        
} 

function del()
{
    confirm("确定要删除吗?");
}



	
function countChar(textareaId,spanId) 
  {  
	var maxl=500;
	var a = document.getElementById(textareaId);
	var c = a.value.length;
	if ( c > maxl)
	{
		 alert("对不起,字数超限！");
		 a.value=a.value.substr(0,maxl);
		 document.getElementById(spanId).innerHTML = 0;
	}
	else
	{
		 document.getElementById(spanId).innerHTML = maxl - c; 
	}
 
  }   
  
  function show(i)
    {
        if(i==1)
        {
		  document.getElementById('fandian').style.display='none';
        }else if(i==2)
		{
		  document.getElementById('fandian').style.display ='';
		}
	}  


function upload()
  {
   document.getElementById("tr_file").style.display ="";
  }
  function deleteFile()
  {
   document.getElementById("tr_file").style.display ="none";
  }

</script>
</head>
<body>
<div id="content">
  <div id="position">当前位置：项目管理&gt;项目申请&gt;项目立项申请</div>
   
 
   <table cellspacing="0" cellpadding="0" class="tb_title_gray" >
    <tr>
      <td class="hidetit">项目基本信息</td>
    </tr>
  </table>
    <table cellpadding="0" cellspacing="1" class="tb_datalist">
	<thead>
	    <tr class="tb_search">
		    <td class="td_title"  width="15%">项目名称<span class="must">*</span></td>
		    <td   width="35%"><input type="text" name="txtPerson32" class="txt_120"/></td>
		    <td class="td_title" width="15%">项目类型<span class="must">*</span></td>
		    <td width="35%">
		    	<input type="radio" name="resouce"  checked />大项目
		        <input type="radio" name="resouce" />一般项目
		    </td>
	    </tr>
		<tr class="tb_search">
			<td class="td_title">销售负责人<span class="must">*</span></td>
			<td>
				<input type="text" name="txtPerson32" class="txt_120"/>
				<img src="../images/icons/search2.gif" alt="选择销售负责人" style="cursor:pointer"  onclick="openwin('../formStyle/oneChannel.html','',650,400)"/>
				<img src="../images/icons/clear.gif" alt="1" width="14" height="11" />
			</td>
			<td class="td_title">立项部门<span class="must">*</span></td>
			<td>
				<input type="text" name="txtPerson32" class="txt_120"/>
			</td>
		</tr>
		<tr class="tb_search">
			<td class="td_title">实施负责人（项目经理）<span class="must">*</span></td>
			<td>
				<input type="text" name="txtPerson32" class="txt_120"/>
				<img src="../images/icons/search2.gif" alt="实施负责人（项目经理）" style="cursor:pointer"  onclick="openwin('../formStyle/oneChannel.html','',650,400)"/>
				<img src="../images/icons/clear.gif" alt="1" width="14" height="11" />
			</td>
			<td class="td_title">实施部门<span class="must">*</span></td>
			<td>
				<input type="text" name="txtPerson32" class="txt_120"/>
			</td>
		</tr>
		<tr class="tb_search">
			<td class="td_title">客户全称<span class="must">*</span></td>
			<td>
				<input type="text" name="txtPerson32" class="txt_120"/>
			</td>
			<td class="td_title">主要供应商<span class="must">*</span></td>
			<td>
				<input type="text" name="txtPerson32" class="txt_120"/>
			</td>
		</tr>
		<tr class="tb_search">
			<td class="td_title">客户联系人<span class="must">*</span></td>
			<td>
				<input type="text" name="txtPerson32" class="txt_120"/>
			</td>
			<td class="td_title">联系方式<span class="must">*</span></td>
			<td>
				<input type="text" name="txtPerson32" class="txt_120"/>
			</td>
		</tr>
		<tr class="tb_search">
			<td class="td_title">项目开始时间<span class="must">*</span></td>
			<td>
				<input name="dateStart" type="text" class="txt_120" onchange="fCheckDateTime('dateStart')" value="" />
				<img src="../images/icons/calendar.gif" alt="项目开始时间" width="16" height="15" border="0"  style="CURSOR: hand" onclick="javascript:fPopCalendar(dateStart,dateStart,dateStart.value );"/> 至
				<input name="dateEnd1" class="txt_120" onchange="fCheckDateTime('dateEnd')" value=""/>
				<img src="../images/icons/calendar.gif" alt="项目开始时间" width="16" height="15" border="0"  style="CURSOR: hand" onclick="javascript:fPopCalendar(dateEnd1,dateEnd1,dateEnd1.value );"/>
			</td>
			<td class="td_title">预计完成时间<span class="must">*</span></td>
			<td>
				<input name="dateStart1" type="text" class="txt_120" onchange="fCheckDateTime('dateStart1')" value="" />
				<img src="../images/icons/calendar.gif" alt="预计完成时间" width="16" height="15" border="0"  style="CURSOR: hand" onclick="javascript:fPopCalendar(dateStart1,dateStart1,dateStart1.value );"/> 至
				<input name="dateEnd2" class="txt_120" onchange="fCheckDateTime('dateEnd')" value=""/>
				<img src="../images/icons/calendar.gif" alt="预计完成时间" width="16" height="15" border="0"  style="CURSOR: hand" onclick="javascript:fPopCalendar(dateEnd2,dateEnd2,dateEnd2.value );"/>
			</td>
		</tr>
    </thead>
  </table>
  <br/>
  <table cellspacing="0" cellpadding="0" class="tb_title_gray">
    <tr>
      <td class="hidetit">项目描述</td>
    </tr>
  </table>
 <table cellpadding="0" cellspacing="1" class="tb_datalist" >
  <thead>
  
	    <tr class="tb_search">
			<td class="td_title" width="15%">预计签约时间<span class="must">*</span></td>
			<td width="35%"  colspan="3">
				<input name="dateStart2" type="text" class="txt_120" onchange="fCheckDateTime('dateStart2')" value="" />
				<img src="../images/icons/calendar.gif" alt="预计完成时间" width="16" height="15" border="0"  style="CURSOR: hand" onclick="javascript:fPopCalendar(dateStart2,dateStart2,dateStart2.value );"/>
			</td>
		</tr>

	    <tr class="tb_search">
		    <td class="td_title" width="15%">项目性质<span class="must">*</span></td>
		    <td width="35%">
		    	<input type="checkbox" name="resouce" />服务类
		        <input type="checkbox" name="resouce" />集成类
		        <input type="checkbox" name="resouce" />软件类
		        <input type="checkbox" name="resouce" />弱电工程类
		        <input type="checkbox" name="resouce" id="ckOne" onclick="showInput()" />其他请说明<input id="inputOther" type="text" name="txtPerson32" class="txt_120"/>
		    </td width="35%">
		    <td class="td_title" width="15%">预计开具发票性质<span class="must">*</span></td>
		    <td>
		    	<input type="checkbox" name="resouce" />销售
		        <input type="checkbox" name="resouce" />服务
		        <input type="checkbox" name="resouce" />建安
		        <input type="checkbox" name="resouce" />其他
		    </td>
	    </tr>

		

		<tr class="tb_search">
			<td class="td_title">预计项目描述<span class="must">*</span></td>
	        <td colspan="3"  ><textarea name="textarea" rows="4" class="txt_120" id="txtea2"  style="width:60%" onkeydown='countChar(&quot;txtea2&quot;,&quot;sp2&quot;);' onkeyup='countChar( &quot;txtea2&quot;,&quot;sp2&quot;);'></textarea>
	          (<span id="sp2" style="color:red">500</span>/500字)</td>
		</tr>

		<tr class="tb_search">
			<td class="td_title">项目说明书</td>
			<td colspan="3"><input name="file" type="file"  class="txt_input "  size="60" style="width:498px;"/>
		    <input type="button" value="上传" class="btnInt"/>
		    </td>
		</tr>

		<tr class="tb_search">
			<td class="td_title">项目毛利率说明<span class="must">*</span></td>
			<td colspan="3">
				<input type="text" name="txtPerson32" class="txt_120"/>
			</td>
		</tr>
		<tr class="tb_search">
			<td class="td_title">项目风险分析<span class="must">*</span></td>
	        <td colspan="3"  ><textarea name="textarea" rows="4" class="txt_120" id="txtea2"  style="width:60%" onkeydown='countChar(&quot;txtea2&quot;,&quot;sp2&quot;);' onkeyup='countChar( &quot;txtea2&quot;,&quot;sp2&quot;);'></textarea>
	          (<span id="sp2" style="color:red">500</span>/500字)</td>
		</tr>
		<tr class="tb_search">
			<td class="td_title">资源需求<span class="must">*</span></td>
	        <td colspan="3"  ><textarea name="textarea" rows="4" class="txt_120" id="txtea2"  style="width:60%" onkeydown='countChar(&quot;txtea2&quot;,&quot;sp2&quot;);' onkeyup='countChar( &quot;txtea2&quot;,&quot;sp2&quot;);'></textarea>
	          (<span id="sp2" style="color:red">500</span>/500字)</td>
		</tr>

    </thead>
  </table>
  <br/>
  <table cellspacing="0" cellpadding="0" class="tb_title_gray">
    <tr>
      <td class="hidetit">成本分析预算</td>
    </tr>
  </table>
 <table cellpadding="0" cellspacing="1" class="tb_datalist" >
	<tr class="tb_search">
		    <td class="td_title"  width="15%">预计合同金额<span class="must">*</span></td>
		    <td  width="35%" ><input type="text" name="txtPerson32" class="txt_120"/></td>
		    <td class="td_title"  width="15%">资金占有成本<span class="must">*</span></td>
		    <td  width="35%"   ><input type="text" name="txtPerson32" class="txt_120"/></td>
	</tr>
	
	 <tr class="tb_search">
		    <td class="td_title"  width="15%">项目毛利率<span class="must">*</span></td>
		    <td  width="35%"><input type="text" name="txtPerson32" class="txt_120"/></td>
			<td class="td_title" width="15%">项目利润<span class="must">*</span></td>
			<td width="35%">
				<input name="dateStart2" type="text" class="txt_120"  /><span class="must">备注：项目性质为集成类，项目利润不填</span>
			</td>
		</tr>
		
		<tr class="tb_search">
		    <td class="td_title"  width="15%">营业税及附加<span class="must">*</span></td>
		    <td  width="35%"><input type="text" name="txtPerson32" class="txt_120"/></td>
			<td class="td_title" width="15%">采购成本<span class="must">*</span></td>
			<td width="35%">
				<input name="dateStart2" type="text" class="txt_120"  />
			</td>
		</tr>
		<tr class="tb_search">
		    <td class="td_title"  width="15%">人力费用<span class="must">*</span></td>
		    <td  width="35%" ><input type="text" name="txtPerson32" class="txt_120"/></td>
			 <td class="td_title"  width="15%">售前费用<span class="must">*</span></td>
		    <td  width="35%" ><input type="text" name="txtPerson32" class="txt_120"/></td>
		</tr>

		<tr class="tb_search">
		    <td class="td_title"  width="15%">项目外包费用<span class="must">*</span></td>
		    <td  width="35%" ><input type="text" name="txtPerson32" class="txt_120"/></td>
			 <td class="td_title"  width="15%">项目运营费用<span class="must">*</span></td>
		    <td  width="35%" ><input type="text" name="txtPerson32" class="txt_120"/></td>
		</tr>
   </table>

  
   <div align="right">
	 <input type="button" class="button" id="btnSave" value="保存" onclick="save();"/>
     <input type="button" class="button" id="btnSave" value="提交" onclick="save();"/>
    <input type="button" class="button" id="btnCancle" value="取消" onclick="window.close();"/>

</div>
</body>
</html>
